<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Blog extends ORM 
{
    protected $_belongs_to = array(
      'admin'  => array(
               'model'       => 'admin',
               'foreign_key' => 'admin_id',
          ),
        'photo'  => array(
               'model'       => 'photo',
               'foreign_key' => 'photo_id',
          ),
        'video'  => array(
               'model'       => 'video',
               'foreign_key' => 'video_id',
          )
      
    );

}




